/**
 * date:2019/08/16
 * author:Mr.Chung
 * description:此处放layui自定义扩展
 * version:2.0.4
 */

window.rootPath = (function (src) {
    src = document.scripts[document.scripts.length - 1].src;
    return src.substring(0, src.lastIndexOf("/") + 1);
})();

layui.config({
    base: rootPath + "lay-module/",
    version: true
}).extend({
    miniAdmin: "layuimini/miniAdmin", // layuimini后台扩展
    miniMenu: "layuimini/miniMenu", // layuimini菜单扩展
    miniTab: "layuimini/miniTab", // layuimini tab扩展
    miniTheme: "layuimini/miniTheme", // layuimini 主题扩展
    miniTongji: "layuimini/miniTongji", // layuimini 统计扩展
    step: 'step-lay/step', // 分步表单扩展
    authtree:'authtree/authtree',
    treetable: 'treetable-lay/treetable', //table树形扩展
    tableSelect: 'tableSelect/tableSelect', // table选择扩展
    iconPickerFa: 'iconPicker/iconPickerFa', // fa图标选择扩展
    echarts: 'echarts/echarts', // echarts图表扩展
    echartsTheme: 'echarts/echartsTheme', // echarts图表主题扩展
    wangEditor: 'wangEditor/wangEditor', // wangEditor富文本扩展
    layarea: 'layarea/layarea', //  省市县区三级联动下拉选择器
    dtree:'dtree/dtree',
    xmSelect:'xm-select',


    product:'rfid/product/product',
    attribute:'system/attribute/attribute',
    datadictionary:'system/datadictionary/datadictionary',
    department:'system/department/department',
    xmSelect:'xmselect/xm-select',
    user:'system/user/user',
    role:'system/role/role',
    log:'system/log/log',
    backupList:'system/log/backupList',
    formSelects:'formSelects/formSelects-v4',
    productLibrary:'rfid/productLibrary/productLibrary',
    lifechain:'rfid/lifechain/lifechain',
    standingbook:'rfid/standingbook/standingbook',
    out:'rfid/out/out',
    storage:'rfid/storage/storage',
    inventory:'rfid/inventory/inventory',
    inventorySummary:'rfid/inventory/inventorySummary',
    inspection:'rfid/inspection/inspection',
    avatar:'cropper/avatar',
    cropper:'cropper/cropper',
    equipment:'instrument/equipment/equipment',
    suppliescollect:'instrument/supplies/suppliescollect',
    suppliesregister:'instrument/supplies/suppliesregister',
    mods:'mods/mods',
    jsanNotice:'mods/extend/notice/jsan-notice',
    position:'system/position/position',
    process:'system/process/process',
    chemicalApplication:'instrument/chemical/chemicalApplication',
    workbench:'instrument/chemical/workbench',
    apply:'instrument/chemical/apply',
    chemical:'instrument/chemical/chemical',
    archives:"instrument/base/archives",
    peasant:"instrument/base/peasant",
    village:"instrument/base/village",
    circuit:"instrument/base/circuit",
    complaint:"instrument/base/complaint",
    maintainrecord:"instrument/base/maintainrecord",
    servicerecord:"instrument/base/servicerecord",
    trainrecord:"instrument/base/trainrecord",
    projectTable:"instrument/base/projectTable",
    watercheck:"instrument/base/watercheck",
    lined:"instrument/base/lined",
    ddlined:"instrument/base/ddlined",
    dossier:"instrument/base/dossier",
    law:"instrument/base/law",
    alertValue:'system/alertvalue/alertValue',
    alert:"instrument/base/alert",
    alertclassify:"instrument/base/alertclassify",
    files:"instrument/base/files",
    xzgl:"instrument/base/xzgl",
    wxss:"instrument/base/wxss",
    yhjl:"instrument/base/yhjl",
    xcxj:"instrument/base/xcxj",

});